from rest_framework.viewsets import ModelViewSet

from goods.models import SpecificationOption, SPUSpecification
from sadmin.serializersss.options_serializers import OptionsSerializers, SPUSpecSerializers
from sadmin.utils import Mypage


class OptionsViews(ModelViewSet):
    queryset =SpecificationOption.objects.all()
    serializer_class = OptionsSerializers
    pagination_class = Mypage

class SpecSimpleView(ModelViewSet):
    queryset = SPUSpecification.objects.all()
    serializer_class = SPUSpecSerializers
